package homework.four_one;
public class JCDemo {
    public static void main(String args[])
    {
        People sushan =new People("苏珊");
        Stud lili=new Stud("李莉");
        People zhaotian=new Stud("赵天");

        sushan.eat();
        sushan.sleep();
        sushan.work();

        lili.exam();
        lili.eat();
        lili.work();
        zhaotian.work();
        Stud s1=(Stud)zhaotian;
        s1.exam();
        s1.SetName("赵天");
        s1.SetAge(20);
        s1.SetSex("男");
        System.out.println("姓名"+s1._name+"年龄:"+s1._age+"性别"+s1._sex);
    }
}
